package socketdemo8;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerDemo {
    public static void main(String[] args) throws IOException {
        ServerSocket ss= new ServerSocket(10000);

        while (true) {
            Socket s = ss.accept();
            ThreadSocket ts = new ThreadSocket(s);
            new Thread(ts).start();

        }
        // ss.close();

    }
}
